package cn.tedu.community.commons.restful;

/**
 * 枚举状态码
 */
public enum ServiceCode {
    OK(20000),
    CANCEL_COLLECTION(10001),
    HEALTH_NEED(10002),
    ERR_PASSWORD(20000),
    ERR_BAD_REQUEST(40000),
    ERR_UNAUTHORIZED(40100), // 新增
    ERR_UNAUTHORIZED_DISABLED(40110), // 新增
    ERR_FORBIDDEN(40300), // 新增
    ERR_CONFLICT(40900),
    ERR_NOTFOUND(40400),
    ERR_INSERT(50000),
    ERR_DELETE(50100),
    ERR_UPDATE(50200),
    ERR_SELECT(50200),
    ERR_JWT_EXPIRED(60000),
    ERR_JWT_MALFORMED(60100),
    ERR_JWT_SIGNATURE(60200),
    ERR_UNKNOWN(99999);

    private Integer value;

    ServiceCode(Integer value){
        this.value = value;
    }

    public Integer getValue(){
        return value;
    }
}
